<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title><?php echo ($meta_title); ?>_<?php echo C('WEB_SITE_TITLE');?></title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />

<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" />

<!-- Set render engine for 360 browser -->
<meta name="renderer" content="webkit" />

<!-- No Baidu Siteapp-->
<meta http-equiv="Cache-Control" content="no-siteapp"/>

<link rel="shortcut icon" href="/Public/static/exstatics/images/favicon.ico" type="image/x-icon" />
<link href="/Public/static/exstatics/bootstrap/css/bootstrap3.3.min.css" rel="stylesheet" />
<link href="/Public/static/exstatics/font-awesome/4.2.0/css/font-awesome.min.css"  rel="stylesheet" type="text/css" />
<link href="/Public/static/exstatics/tea.css" rel="stylesheet" />
<!--[if IE 7]>
	<link rel="stylesheet" href="/Public/static/exstatics/font-awesome/4.2.0/css/font-awesome-ie7.min.css">
<![endif]-->
<!-- HTML5 shim for IE8 support of HTML5 elements -->
<!--[if lt IE 9]>
	<script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
	<script src="/Public/static/exstatics/bootstrap/js/respond.min.js" ></script>
<![endif]-->
	<script type="text/javascript" src="/Public/static/exstatics/bootstrap/js/jq.min.js" ></script>
	<script type="text/javascript" src="/Public/static/exstatics/bootstrap/js/bootstrap3.3.min.js" ></script>
	<script type="text/javascript" src="/Public/static/exstatics/angular/angular.min.js" ></script>
	<script type="text/javascript" src="/Public/static/exstatics/angular/myApp.js" ></script>


</head>

<body>
	
	<!-- 顶部登录条 loginbar -->
	<div class="container-fluid loginbar">
		<div class="container">
			<div class="loginbar-info userInfo">
				<?php if(is_login()): ?><div class="dropdown">
					<div id="dLabel" class="fl">欢迎您<a role="button"  data-taget="#" data-toggle="dropdown" href="">&nbsp;&nbsp; <b><?php echo get_username();?>&nbsp;<span class="fa fa-caret-down"></span></b></a></div>
					<span class="sep">|</span>
					<ul class="dropdown-menu userToggle" role="menu" aria-labelledby="dLabel">
					<img style="position:absolute;top:-7px;left:75px;index:1100;" src="http://c1.mifile.cn/f/i/2014/cn/icon/user-menu-arrow.png" />
						 <li><a rel="nofollow" href="index.php?s=/Home/center/index.html">个人中心</a></li>
						 <li><a rel="nofollow" href="index.php?s=/Home/center/collect.html">我的收藏</a></li>
						 <li><a rel="nofollow" href="index.php?s=/Home/center/coupon.html">优惠券</a></li>
						 <li><a rel="nofollow" href="index.php?s=/Home/center/comment.html">我的评论</a></li>
						 <li><a rel="nofollow" href="index.php?s=/Home/User/logout.html">退出</a></li>
				    </ul>
				<a href="index.php?s=/Home/center/allorder.html">我的订单</a>
				</div>
				<?php else: ?>
				<a href="<?php echo U('User/login');?>">登录</a>
				<span class="sep">|</span>
				<a href="<?php echo U('User/register');?>">注册</a><?php endif; ?>
			</div>
		</div>
	</div>
	<script type="text/javascript">
		$('#dLabel,.userToggle').hover(function(){
				$('.userToggle').css('display','block');
				},function(){
				$('.userToggle').css('display','none');
				});
	</script>
	<!-- 顶部登录条 loginbar end-->
	

	
	<!-- 主体内容 site-body -->
	
		
		<!--导航条-->
		<div class="container site-header">
			<div class="row">
				<i class="fa fa-home fa-4x col-md-2"></i>
				<form  class="col-md-8" role="form" action="<?php echo U('User/login');?>" method="post">
					<div class="form-group site-search fr">
						<input type="text" class="form-control site-search-input fl" name="seach" placeholder="输入关键词搜索"/>
						<span style="border-left:1px solid rgb(230,230,230);margin-left:0px;height:43px;"class="sep fl"></span>
						<button type="submit" class="fa fa-search site-search-btn fl" /></button>
					</div>
				</form>
				<div class="col-md-2">
					<div class="site-shopCart"><i class="fa fa-shopping-cart"></i>&nbsp;&nbsp;购物车</div>
				</div>
			</div>
		</div>
		<br />
		<div class="container site-nav">
			<div class="row">
				<div class="site-category col-md-2">
					<li class="h4Title">全部商品分类</li>
					<div class="category-menu mborder">
						<?php if(is_array($categoryq)): $i = 0; $__LIST__ = array_slice($categoryq,0,7,true);if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?><div class="category-li" >
							<li class="h5Title"><?php echo ($vo["title"]); ?></li>
							<?php if(is_array($vo["child"])): $i = 0; $__LIST__ = array_slice($vo["child"],0,3,true);if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$sub): $mod = ($i % 2 );++$i;?><li class="fl"><?php echo ($sub["title"]); ?>&nbsp;&nbsp;</li><?php endforeach; endif; else: echo "" ;endif; ?>
						</div><?php endforeach; endif; else: echo "" ;endif; ?>
					</div>
				</div>
				<div class="site-menu col-md-10">
				</div>
			</div>
		</div>
		<!--导航条 end -->
		
		<style type="text/css">
	.slide-bg1,.slide-bg2,.slide-bg3{
		height:350px;
	}
	.slide-bg1{
		background:rgb(200,0,0);
	}
	.slide-bg2{
		background:rgb(0,200,0);
	}
	.slide-bg3{
		background:rgb(0,0,200);
	}
</style>
	<div class="container"><div class="row"><div class="col-md-10 col-md-offset-2">
<div id="myCarousel" class="carousel slide" data-ride="carousel" data-interval="3000" >
	<ol class="carousel-indicators" > 
		<li data-target="#myCarousel" data-slide-to="0" class="active"></li>
		<li data-target="#myCarousel" data-slide-to="1" ></li>
		<li data-target="#myCarousel" data-slide-to="2" ></li>
	</ol>

	<div class="carousel-inner">
		<div class="item active">
			<div class="slide-bg1 text-center">
			</div>
		</div>
		<div class="item">
			<div class="slide-bg2">
				<div class="container">
				</div>
			</div>
		</div>
		<div class="item">
			<div class="slide-bg3 text-center">
			</div>
		</div>
	</div>
	   <!-- 轮播（Carousel）导航 -->
	<a class="carousel-control left" href="#myCarousel" data-slide="prev">&lsaquo;</a>
	<a class="carousel-control right" href="#myCarousel" data-slide="next">&rsaquo;</a>
</div></div></div>
</div>

		
		
		<div class="container">
			<!--div class="row" style="height:150px;"></div-->
			<?php if(is_array($category)): $k = 0; $__LIST__ = array_slice($category,0,2,true);if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($k % 2 );++$k;?><div class="row">
				<div class="col-md-12"><div class="h3Title floor-title"><?php echo ($k); ?>F &nbsp;&nbsp;<?php echo ($vo["title"]); ?></div></div>
				<div class="col-md-3">
					<a href="<?php echo U('Article/index?category='.$vo['name']);?>" target="_blank"><img class="floor-img" src="<?php echo (get_cover($vo["icon"],'path')); ?>"  /> </a>
				</div>
				<div class="col-md-9 nopadding">
					<?php if(is_array($vo["doc"])): $i = 0; $__LIST__ = array_slice($vo["doc"],0,4,true);if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$goods): $mod = ($i % 2 );++$i;?><div class="col-md-3 goods">
						<a href="<?php echo U('Article/detail?id='.$goods['id']);?>" title="<?php echo ($goods["title"]); ?>">
							<div class="goods-pic">
								<img src="<?php echo (get_cover($goods["cover_id"],'path')); ?>" alt="<?php echo ($goods["tltle"]); ?>" />
							</div>
							<div class="goods-title"><?php echo (msubstr($goods["title"],0,28)); ?></div>
							<div class="goods-price">￥<?php echo ($goods["price"]); ?> </div>
						</a>
						<div class="goods-addCart"><i class="fa fa-shopping-cart"></i>&nbsp;&nbsp;&nbsp;加入购物车</div>
					</div><?php endforeach; endif; else: echo "" ;endif; ?>
				</div>
			</div><?php endforeach; endif; else: echo "" ;endif; ?>
		</div>		
		<script type="text/javascript">
			$('.goods').hover(function(){
					$(this).addClass('goodsBorder');
					},function(){
					$(this).removeClass('goodsBorder');
					});
		</script>
		
	<!-- 主体内容 site-body end-->
	
	
	
	<!-- 底部内容 footer-->
		<div class="container text-center">
			<br />
			<br />
			<li><a href="">常见问题</a></li>
			<br />
			<li><a href="">久茗轩茶叶有限公司版权所有-京ICP备10046444-京公网安备1101080212535</a></li>
		</div>
	<!-- 底部内容 footer end-->
		
</body>

</html>